package com.example.eureka.controller;

import com.example.eureka.service.Vehicle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * description :
 * author :q'q
 * create :2021-11-02 13:57:00
 */
@RestController
@RequestMapping("/test")
public class ControllerTest {

    @Qualifier("car")
    @Autowired
    private Vehicle vehicle;

    @GetMapping(value = "/test")
    public String addAudit() {
        LocalDateTime now = LocalDateTime.now();
        List<String> name = new ArrayList<>();
        vehicle.print();
        return String.valueOf(now);
    }

}
